﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Referee
    {
        public void Battle(int a, int b, string name, string name1, int PlayerSum, int NPCSum)
        {
            
            if (a == b)
            {
                Console.WriteLine("平局！");
            }
            else if (a == 1 && b == 2 || a == 2 && b == 3 || a == 3 && b == 1)
            {
                Console.WriteLine("{0}获胜！", name);
                PlayerSum = PlayerSum + 1;
            }
            else if (a == 1 && b == 3 || a == 2 && b == 1 || a == 3 && b == 2)
            {
                Console.WriteLine("{0]获胜！", name1);
                NPCSum = NPCSum + 1;
            }
        }
    }
}
